package com.jv.spring.other;

import com.jv.spring.other.define.MyAnnotation;
import com.jv.spring.other.define.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource(value = "classpath:au.properties",name="my-au",encoding = "utf-8")
@MyAnnotation(lazyInit = true)
public class OtherConfig extends MyParentConfig implements MyConfig{

	@Bean
	public User getUser(){
		return new User();
	}
}


